<html>
<head><title>Report Computer.</title></head>
<body background = "http://www.nmt.or.th/chonburi/nongchak/DocLib4/SiteImages/BG-Top.bmp">
<center>
<h1>Report Computer.</h1>
<h6>Detail all computer in the laboratory Engineering Computer(KMUTNB)</h6>
	<table BORDER = "1">
<tr><td WIDTH = 250 HEIGHT = 35><center><font color = blue>COMPUTER ID</center></td><td WIDTH = 250><center> <font color = blue>DATE REPAIR</center></td><td WIDTH = 250><center><font color = blue>REPAIRMAN</center></td><td WIDTH = 250><center><font color = blue>STATUS</center></td></tr>
	{% for Computers in Computers%}
		{% if Computers.last_date_repair = 'waiting repair' %}				
			<td><font color = red><center><h5> {{ Computers.id_computer }} <center></td>
			<td><font color = red><center><h5> {{ Computers.last_date_repair  }} <center></td>
			<td><font color = red><center><h5> {{ Computers.repairman  }} <center></td>
 			<td><font color = red><center><h5> {{ Computers.status  }} <center></td>
			</font>	
		{% else %}
			<td><font color = green><center><h5> {{ Computers.id_computer }} <center></td>
			<td><font color = green><center><h5> {{ Computers.last_date_repair  }} <center></td>
			<td><font color = green><center><h5> {{ Computers.repairman  }} <center></td>
 			<td><font color = green><center><h5> {{ Computers.status  }} <center></td>
		{% endif %}
		{% if not forloop.last %}
		{% endif %}
		</tr>
	{% endfor %}
	</table>		
	
<br><br><form action="http://127.0.0.1:8000/" method="get">	
		<input type="submit" value="Back to Main Page">
	</form>
</body>
</html>

